package com.simple.microservices.api.active;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.simple.microservices.api.dto.MySpotDTO;
import com.simple.microservices.dao.dataobject.Banner;
import com.simple.microservices.dao.dataobject.MineSpot;
import com.simple.microservices.dao.dataobject.Spot;
import com.simple.microservices.dao.dataobject.SpotPool;

import java.util.List;

public interface BlindBoxService {

    /**
     * 获取所有 Banner
     * @return
     */
    List<Banner> getAll();

    /**
     * 获取小纸条
     * @param userId
     * @param sex
     * @return
     */
    SpotPool getSpot(Long userId, String sex);

    /**
     * 保存小纸条
     * @param spotPool
     */
    void saveSpot(SpotPool spotPool);
    void saveSpot(Spot spot);

    void putSpotByUserId(Long userId);

    /**
     * 根据用户ID查询 是否存在
     * @param userId
     * @return
     */
    Boolean getByUserId(Long userId);
    Boolean getByUserId();

    IPage<MineSpot> getPageList(MySpotDTO convert);

    List<MineSpot> getAllList();
}
